﻿<?xml version="1.0" encoding="utf-8"?>
<Elements
    xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- RegistrationId attribute is the list type id,
        in this case, a document library (id=101). -->
  <CustomAction
      Id="65695319-4784-478e-8dcd-4e541cb1d682.CustomAction"
      RegistrationType="List"
      RegistrationId="10057"
      Location="EditControlBlock"
      Sequence="10001"
      Title="UnRead">
    <!-- 
    Update the Url below to the page you want the custom action to use.
    Start the URL with the token ~remoteAppUrl if the page is in the
    associated web project, use ~appWebUrl if page is in the app project.
    -->
    <UrlAction Url="javascript:ClickUnReadContextMenu();" />
    <!--<CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="EditControlBlock">
          <Button
              Id="Ribbon.ListItem.Manage.ReadList.UnReadContextMenu"
              Alt="Invoke custom action"
              Sequence="115"
              Command="Invoke_CustomAction"
              LabelText="UnReadMenu"
              TemplateAlias="o1"
              Image32by32="_layouts/15/images/placeholder32x32.png"
              Image16by16="_layouts/15/images/placeholder16x16.png" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
     <CommandUIHandlers>
        <CommandUIHandler
            Command="Invoke_CustomAction"
            CommandAction="javascript:ClickUnReadContextMenu()"
            EnabledScript ="javascript:EnableUnReadContextMenu()"/>
      </CommandUIHandlers>
    </CommandUIExtension>-->
  </CustomAction>
  <CustomAction
  Id="Ribbon.ListItem.Manage.ReadMarkAction"
  Location="ScriptLink"
  ScriptSrc ="~site/_layouts/15/ReadMark/ReadMarkAction.js"/>
</Elements>
